<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!doctype html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>休假审核</title>
	
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
		.vaForm{margin-left:256px;}
		.vaForm .vaFormInput{margin-left:64px;}
		.formDivs{margin:5px;}
	</style>
	
	<script type="text/javascript" src="/oas/js/jquery-1.11.3.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){},function auditLoad(u1,u2){
				var url=u1+""+u2;
				$("#ajax").load(u1+u2);
		})
	</script>
	
</head>
<body>
	<div class="action">
		<div class="t">
			休假审核
		</div>
		<div class="pages">
			<form class="vaForm">
				<div>&nbsp;&nbsp;&nbsp;&nbsp;姓名：<input type="text" id="username" value="<s:property value='#request.v.applicant.username'/>"/></div>
				<div class="formDivs">开始时间：<span id="startTime"><s:property value="#request.v.startTime.toString().substring(0, 10)"/></span></div>
				<div class="formDivs">结束时间：<span id="endTime"><s:property value="#request.v.endTime.toString().substring(0, 10)"/></span></div>
				<div class="formDivs">请假天数：<input type="text" id="days" value="<s:property value='#request.v.days'/>"/></div>
				<div class="formDivs">请假原因：<textarea id="reasons"><s:property value='#request.v.reason'/></textarea></div>
				<div class="formDivs">&nbsp;&nbsp;申请人：<input type="text" id="nickname" value="<s:property value='#request.v.applicant.username'/>"/></div>
				<br/>
				<div class="vaFormInput">
				<input type="button" onclick="auditLoad('/oas/vacation/auditResult?answer=1&vid=',<s:property value='vid'/>)" value="审核通过"/>
				&nbsp;<input type="button" onclick="auditLoad('/oas/vacation/auditResult?answer=2&vid=',<s:property value='vid'/>)" value="审核不通过"/>
				</div>
				
			</form>
		</div>
	</div>
</body>
</html>